package com.bank6677.sync.csm.domain.old;

import java.util.Date;

public class LoanStatoptFlow {
	private Long id;
	private Long applyId;
	private Integer fromAdminId;
	private Integer toAdminId;
	private String fromStat;
	private String toStat;
	private Date createDt;
	private String type;
	private Integer rejectType; // 推广统计ID

	public Integer getRejectType() {
		return rejectType;
	}

	public void setRejectType(Integer rejectType) {
		this.rejectType = rejectType;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getApplyId() {
		return applyId;
	}

	public void setApplyId(Long applyId) {
		this.applyId = applyId;
	}

	public Integer getFromAdminId() {
		return fromAdminId;
	}

	public void setFromAdminId(Integer fromAdminId) {
		this.fromAdminId = fromAdminId;
	}

	public Integer getToAdminId() {
		return toAdminId;
	}

	public void setToAdminId(Integer toAdminId) {
		this.toAdminId = toAdminId;
	}

	public String getFromStat() {
		return fromStat;
	}

	public void setFromStat(String fromStat) {
		this.fromStat = fromStat == null ? null : fromStat.trim();
	}

	public String getToStat() {
		return toStat;
	}

	public void setToStat(String toStat) {
		this.toStat = toStat == null ? null : toStat.trim();
	}

	public Date getCreateDt() {
		return createDt;
	}

	public void setCreateDt(Date createDt) {
		this.createDt = createDt;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type == null ? null : type.trim();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		LoanStatoptFlow other = (LoanStatoptFlow) obj;
		if (applyId == null) {
			if (other.applyId != null)
				return false;
		} else if (!applyId.equals(other.applyId))
			return false;
		if (createDt == null) {
			if (other.createDt != null)
				return false;
		} else if (!createDt.equals(other.createDt))
			return false;
		if (fromAdminId == null) {
			if (other.fromAdminId != null)
				return false;
		} else if (!fromAdminId.equals(other.fromAdminId))
			return false;
		if (fromStat == null) {
			if (other.fromStat != null)
				return false;
		} else if (!fromStat.equals(other.fromStat))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (rejectType == null) {
			if (other.rejectType != null)
				return false;
		} else if (!rejectType.equals(other.rejectType))
			return false;
		if (toAdminId == null) {
			if (other.toAdminId != null)
				return false;
		} else if (!toAdminId.equals(other.toAdminId))
			return false;
		if (toStat == null) {
			if (other.toStat != null)
				return false;
		} else if (!toStat.equals(other.toStat))
			return false;
		if (type == null) {
			if (other.type != null)
				return false;
		} else if (!type.equals(other.type))
			return false;
		return true;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((applyId == null) ? 0 : applyId.hashCode());
		result = prime * result
				+ ((createDt == null) ? 0 : createDt.hashCode());
		result = prime * result
				+ ((fromAdminId == null) ? 0 : fromAdminId.hashCode());
		result = prime * result
				+ ((fromStat == null) ? 0 : fromStat.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((rejectType == null) ? 0 : rejectType.hashCode());
		result = prime * result
				+ ((toAdminId == null) ? 0 : toAdminId.hashCode());
		result = prime * result + ((toStat == null) ? 0 : toStat.hashCode());
		result = prime * result + ((type == null) ? 0 : type.hashCode());
		return result;
	}
}